<?php
/*
 * @version $Id: uninstall.sef.php,v 1.1 2005/01/21 01:17:51 marlboroman_2k Exp $
 *
 * 404 SEF for MOS 4.5.1
 *
 * Author:	W.H.Welch <marlboroman_2k@yahoo.com>
 * Copyright:	2004 W.H.Welch
 * License:	GNU General Public License
 */


defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

function com_uninstall() {
	
	echo '<h3>404 SEF succesfully uninstalled.</h3>';
	if (substr(PHP_OS, 0, 3) == 'WIN') {
		$filename = "C:\Inetpub\wwwroot\web.config";
		echo '<p align="left">Please remember to remove '.$filename." and the Custom Error you created with the Internet Services Manager</p>";
	}else{
		$htaccess="
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
	";
		$filename = $GLOBALS['mosConfig_absolute_path'] ."/.htaccess";
		echo '<p align="left">Please remember to edit '.$filename.' and remove the following lines.</p>';
		echo '<p align="left">'.$htaccess.'</p>';
	}
}
